﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations.Schema;
namespace MyShopCity.Models
{
    public class OrderSub
    {
        public int ID { get; set; }
        public int OrderID { get; set; }
        public string OrderNo { get; set; }
        public int CommodityID { get; set; }
        public int Qty { get; set; }
        public decimal SumCurr { get; set; }
        public decimal Price { get; set; }
        [ForeignKey("OrderID")]
        public virtual Order Order { get; set; }
        [ForeignKey("CommodityID")]
        public virtual Commodity Commodity { get; set; }
    }
}